package com.zzyl.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.LoginDto;
import com.zzyl.entity.SysUser;
import com.zzyl.mapper.LoginMapper;
import com.zzyl.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginMapper loginMapper;

    @Override
    public SysUser login(LoginDto loginDto) {
       return loginMapper.fingByUsernameAndPassword(loginDto.getUsername(),loginDto.getPassword());

    }
}

